package com.ssy.lingxi.contract.repository;

import com.ssy.lingxi.contract.entity.SignatureAuthLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 电子签章认证记录仓库类
 * @author yzc
 * @version 2.0.0
 * @date 2020/9/1
 */
@Repository
public interface SignatureAuthLogRepository extends JpaRepository<SignatureAuthLog, Long>, JpaSpecificationExecutor<SignatureAuthLog> {

    SignatureAuthLog findByFlowId(String flowId);

    List<SignatureAuthLog> findAllByStateAndFlowIdNotNull(Integer state);

    SignatureAuthLog findByMemberId(Long memberId);
}
